Fix bug re noninteractive multithreaded memory allocation.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Jul 2013 21:06:12 +0000 (14:06 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Jul 2013 21:06:12 +0000 (14:06 -0700)
commit59c6953e52e9bd45f51ce2383b9682ad3deb5126
tree58a353402498aed526106295a4043e9c19b9b7c3
parent1674cb7928e0fa388603f50f1e22324e472bd50a
Fix bug re noninteractive multithreaded memory allocation.

* emacs.c (malloc_enable_thread): Hoist extern decl to top level.
(main) [HAVE_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
Invoke malloc_enable_thread even when not interactive.
Problem reported by Ken Brown in <http://bugs.gnu.org/14569#275>.
* process.c (init_process_emacs) [CYGWIN]: Tickle glib even
in this case, since the underlying bug has now been fixed.
src/ChangeLog
src/emacs.c
src/process.c